package zigzag.designpattern.prototype;

/*
 * ZigzagSoft.net
 * Copyright 2006-2008 Jerry Chan
 * Email : jerry.chan.cn@gmail.com
 *
 * These sources may be copied, modified and distributed only for
 * projects undertaken by Jerry Chan, or with the agreement by the author.
 * Any enhancement/changes/suggestion to the source is welcome and is to
 * keep the author informed.
*/

public class House implements Cloneable {
    String room;
    String garden;

    public String getRoom() {
        return room;
    }

    public void setRoom(String room) {
        this.room = room;
    }

    public String getGarden() {
        return garden;
    }

    public void setGarden(String garden) {
        this.garden = garden;
    }

    public Object clone() {
        House object = null;
        try {
            object = (House) super.clone();
        } catch (CloneNotSupportedException exception) {
            System.err.println("House not Cloneable");
        }
        return object;
    }
}
